package com.zhangyang.dubbo.dal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * Created by ASUS on 2017/9/11.
 */
@Repository(value = "orderDao")
public class OrderDaoImpl implements OrderDao {

    @Autowired
    JdbcTemplate orderJdbcTemplate;

    /**
     * 插入订单
     */
    public void insertOrder() {
      orderJdbcTemplate.execute("INSERT orderinfo(pricestaus,price,order_time) VALUES(1,10,NOW());");
    }
}
